<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, max-age=0, must-revalidate"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="Fri, 01 Jan 1990 00:00:00 GMT"/>

    <link rel = "stylesheet" href="/front-end/style/bootstrap.min.css">
    <link rel = "stylesheet" href="/front-end/style/style.css">
    <meta charset="UTF-8">

    <script src = "/front-end/js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src = "/front-end/js/bootstrap.min.js" type="text/javascript"></script>

    <title></title>

</head>
<body >
<div align="center" margin-top = "50px" padding = "50px">

    <form method="post" action = "/menu.jsp" >
        <table width="40%"  cellspacing="0px" cellpadding="10px" bgcolor="white">
            <tr>
                <td> name:</td>
                <td><input name="name" value="${requestScope.film.film_name}" ></td>
                <td></td>
            </tr>
            <tr>
                <td>category</td>
                <td>
                    <select class="single_select" name = "category">
                        <c:forEach var="category" items="${applicationScope.allCategories}">
                            <option  readonly="readonly">${category.category_name}</option>    <!--value="${category.category_id}"-->
                        </c:forEach>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    user:
                </td>
                <td>
                    <!--<input name="user" value="${requestScope.film.user}"> -->
                    <input type="hidden" name="user" value="${sessionScope.user_name}">
                </td>
            </tr>    

            <tr>
                <td></td>
                <td>
                    <input type="submit" value="Save">
                </td>
            </tr>
            <tr>
                <td><input type="hidden" name = "action" value=${requestScope.action}> </td>
                <td><input type="hidden" name = "id" value=${requestScope.film.film_id}></td>
            </tr>
        </table>

    </form>
</div>
</body>
</html>
